import {Module} from 'vuex';
import { TagsViewRoutesState,RootStateTypes } from '/@/store/interface/index';

const tagsViewRoutesModule:Module<TagsViewRoutesState,RootStateTypes> ={
    namespaced:true,
    state:{
        tagsViewRoutes:[],
        isTagsViewCurrenFull:false,
    },
    mutations:{
        getTagsViewRoutes(state:any,data:Array<string>){
            state.tagsViewRoutes = data;
        },
        getTagsViewCurrenFull(state:any,bool:Boolean){
           state.isTagsViewCurrenFull = bool;
        }

    },
    actions:{
        setTagsViewRoutes({commit},data:Array<string>){
            commit('getTagsViewRoutes',data)
        },
        setTagsViewCurrenFull({commit},bool:Boolean){
            commit('getTagsViewCurrenFull',bool)
        }
    }

}

export default tagsViewRoutesModule;